/**
 *
 * @author Captain Normality
 */
package xmlparser;


public class BuySellOrder implements Comparable{
    
    public int region;
    public int station;
    public String stationName;
    public double security;
    public double range;
    public double price;
    public int volume;
    public int minVolume;
    public String expires;
    public String reported;

    @Override
    public int compareTo(Object t) {
        BuySellOrder other = (BuySellOrder)t;
        
        if(this.price < other.price)
            return -1;
        else if(this.price > other.price)
            return 1;
        else
            return 0;        
    }
}
